/***point to class**/
#include<conio.h>
#include<stdio.h>
#include<iostream>
using namespace std;
class CRectangle
{
	int w,h;
public:
	void setvalues(int a, int b);
	int area();

};
void CRectangle::setvalues(int a, int b)
{
	w=a;
	h=b;
}
int CRectangle::area()
{
	return (w*h);
}
int main()
{
	CRectangle recta;
	CRectangle *rectb;
	recta.setvalues(3,4);
	rectb=&recta;
	cout<<"area:"<<recta.area();
	cout<<"\nareb:"<<rectb->area();
	delete rectb;
	getch();
	return 0;
}